
/* ************************************************************************/
#ifndef __MZ_MESSAGE_BOX_H__
#define __MZ_MESSAGE_BOX_H__
//#include "mzfc.h"
#include "mzfc_ui.h"
#include "MzWndEx.h"
#define MZ_OK                       0
#define MZ_OKCANCEL                 1
#define MZ_ABORTRETRYIGNORE         2
#define MZ_YESNOCANCEL              3
#define MZ_YESNO                    4
#define MZ_RETRYCANCEL              5
#define MESSAGEBOX_HEIGHT            280
#define MESSAGEBOX_WIDTH              428

class MZFC_API MzMessageBoxDlg : public CMzWndEx
{
public:
	MzMessageBoxDlg( const TCHAR* content, const TCHAR *title, int nType = MZ_OK, int nHomeKeyReturnValue = SHK_RET_DEFAULT );
	virtual ~MzMessageBoxDlg();	
	// 	virtual void PaintTransWnd(HDC hdc, RECT* prcUpdate = NULL);
	virtual void PaintWin(HDC hdc, RECT* prcUpdate /* = NULL */);
	void SetTransParent(bool bTrans=true, byte byAlpha=255);
	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);

// 	int GetHeight()
// 	{
// 		return MESSAGEBOX_HEIGHT;
// 	}

protected:
	virtual BOOL OnInitDialog();
	virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);

private:
	void _SetButtons();
	HDC m_hDcBG;
	HBITMAP m_hbmp;
	UiTitleBar m_toolBar;
	const TCHAR *m_content;
	const TCHAR *m_title;
	UiButton m_okBtn;
	UiButton m_cancelBtn;
	UiButton m_noBtn;
// 	UieText m_text;
	int m_nType;
	//bool m_bTrans;
	byte m_byAlpha;

};

#endif

